import { ajax } from './ajax.js'

/**
 * 获取用户的ip地址
 */
async function getClientIp() {
    let clientIp = await ajax.post('/getIp')
    return clientIp
}

/**
 * 获取客户端ip+uuid
 */
async function getClientInfo() {
    let clientInfo = await ajax.post('/getIpAndUuid')
    return clientInfo
}
export default {
    getClientIp,
    getClientInfo
}
